<template>
  <div style="line-height:1.8">
    <div v-if="qType==1" class="item">
      <div class="q-title" v-html="question.title"/>
      <div class="q-content">
          <div  :key="item.id" v-for="item in question.items" class="q-item-contain">
            <span class="q-item-prefix">{{item.prefix}}</span>、
            <span v-html="item.content" class="q-item-content"></span>|
          </div>
      </div>
    </div>
    <div v-else-if="qType==2" class="item">
      <div class="q-title" v-html="question.title"/>
      <div class="q-content">
          <div :key="item.id" v-for="item in question.items" class="q-item-contain">
            <span class="q-item-prefix">{{item.prefix}}</span>、
            <span v-html="item.content" class="q-item-content"></span>|
          </div>
      </div>
    </div>
    <div v-else-if="qType==3" class="item">
      <div class="q-title" v-html="question.title" style="display: inline;margin-right: 10px"/>
      <div class="q-content">
        <span>（</span>&nbsp;
        <span :key="item.id" v-for="item in question.items">
          <span v-html="item.content" class="q-item-content"></span>&nbsp;&nbsp;
        </span>
        <span>）</span>
      </div>
    </div>
    <div v-else-if="qType==4" class="item">
      <div class="q-title" v-html="question.title"/>
    </div>
    <div v-else-if="qType==5" class="item">
      <div class="q-title" v-html="question.title"/>
    </div>
    <div v-else class="item">
    </div>
  </div>

</template>

<script>
export default {
  name: 'QuestionShow',
  props: {
    question: {
      type: Object,
      default: function () {
        return {}
      }
    },
    qLoading: {
      type: Boolean,
      default: false
    },
    qType: {
      type: Number,
      default: 0
    }
  },
  methods: {}
}
</script>
<style lang="scss" scoped>
.item{
  display: flex;
  flex-direction: column;
  font-family: "华文楷体";
  width: 100%;
  .q-title{
    // font-size: 20px;
    // font-weight: bold;
  }
  .q-content{
    display: flex;
    .q-item-contain{
      display: flex;
      // width: 10%;
      align-items: center;
    }
   
  }
}
</style>
